<?// Page variables$rightCol   = 1;$parseURI   = 1;$loggedUser = 0;$jsFile     = "jsSajax.php";$overwriteURI = "/viewResources.php";include("includes/functions.php"); include("includes/sajax/sajax.php");
sajax_init();sajax_export("logRank");sajax_export("badLink");include("includes/sajax/functionsSajax.php");sajax_handle_client_request();
if ($mostPopular == 1) { $limit = 5; }else { $limit = 10; }include("includes/header.php"); ?>	<div id="pageTop"></div>	<div id="pageContent">		<? include("includes/menu_main.php"); ?>
		<div id="rightCol">			<img src="<?=$siteURL; ?>/images/rightColTop.gif">			<? include("includes/rightCol.php"); ?>					</div>
		<div id="mainContent">		<!-- Generate Breadcrumbs -->		<? 		@buildBreadcrumbs($resourcePath);		echo $breadCrumbs;		?>
		<p></p>			<h1><?=$subSubCatName; ?></h1>				<div class="headBar"></div>			<?			$sqlL = "SELECT LevelID from transLevels WHERE Path = '$resourcePath'";			$resultL = mysql_db_query($dbname,$sqlL);			$pathID = mysql_fetch_assoc($resultL);			$pathID = $pathID[LevelID];
			// Get total number of resources for this category			//$sqlR = "SELECT * from transLinks WHERE Path = '$resourcePath' AND Status = '1' ORDER BY DateCreated DESC";
			$sqlR = "SELECT 						TL.LinkID,TL.Title,TL.LinkDescription,TL.Link,TL.UserID,						TL.DateCreated,TL.Views,TL.RankTotal,LP.MainPath					FROM transLinks TL					LEFT JOIN transLinkPath LP ON TL.LinkID = LP.LinkID					WHERE LP.PathID = '$pathID' AND TL.Status = 1					ORDER BY TL.DateCreated DESC";			$resultR = mysql_db_query($dbname,$sqlR);			$rowsR = mysql_num_rows($resultR);						include("includes/listResources.php");
			$totalRows = $rowsR;			?>			<? if ($totalRows < 1) {				echo "<b>Help our network grow!</b> Be the first to <a href=\"resourceAdd.php?path=\"><b>submit a resoure</b></a> to this category.<br>\n";								} ?>			<? if ($totalRows < 10) { echo "<div class=\"spacer2\" style=\"height: 600px;\"></div>\n"; } ?>				</div>	</div><? include("includes/footer.php"); ?>